<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<f:subview id="step4">
    <h:panelGrid columns="3">
        <f:facet name="header">
            <h:outputText value="#{msg.contacts} 4/5" />
        </f:facet>

        <h:outputText value="#{msg.mobile}"/>
        <h:inputText value="#{convalidaPaziente.cellulare}" id="cell"  required="true" 
                     requiredMessage="#{msg.required_text_error}"
                     validatorMessage="#{msg.mobile_validator}">
            <f:validator validatorId="MobileValidator" />
        </h:inputText>
        <rich:message for="cell" errorClass="error-message"/>

        <h:outputText value="E-mail"/>
        <h:inputText value="#{convalidaPaziente.email}" id="mail" required="true" requiredMessage="#{msg.required_text_error}" validatorMessage="#{msg.mail_validator}"  >
            <f:validator validatorId="MailValidator" />
        </h:inputText>
        <rich:message for="mail" errorClass="error-message"/>


    </h:panelGrid>
    <h:commandLink action="prev" >
        <img src="/PortaleVisite/resources/img/left.png" style="width: 50px" />
    </h:commandLink>
    <h:commandLink action="#{convalidaPaziente.insertIntoDb}" >
        <img src="/PortaleVisite/resources/img/plus.png" style="width: 50px" />
    </h:commandLink>  
</f:subview >